import { createRouter, createWebHashHistory } from 'vue-router'
import Login from '../views/Login'

const routes = [
    {
        path: '/login',
        name: '登录',
        component: () => import('../views/Login')
    },
    {
        path: '/',
        redirect: '/login'
    },
    {
        path: '/index',
        name: ' ',
        component: () => import('../views/Index'),
        children: [
            {
                path: '/form',
                name: '表单',
                component: () => import('../views/FormDemo')
            },

            {
                path: '/list',
                name: '列表',
                component: () => import('../views/RecallList')
            }
        ]
    },
    {
        path:'/recall',
        name: '回忆',
        component: () => import('../views/web/Recall')
    },
    {
        path:'/en',
        name: '英语',
        component: () => import('../views/web/En')
    },
    {
        path: '/tech',
        name: '技术',
        component: () => import('../views/web/Tech')
    }

]

const router = createRouter({
    history: createWebHashHistory(process.env.BASE_URL),
    routes
})

export default router